package com.itheima_01.day07.KuoZhanZuoYe_02;

public class Car {
    private String pinpai;
    private Double price;
    private String color;
    public void setPinpai(String pinpai){
        this.pinpai=pinpai;
    }
    public String getPinpai(){
        return pinpai;
    }
    public void setPrice(Double price){
        this.price=price;
    }
    public Double getPrice(){
        return price;
    }
    public void setColor(String color){
        this.color=color;
    }
    public String getColor(){
        return color;
    }
    public Car(){
        System.out.println("空参数构造方法执行了....");
    }
    public Car(String pinpai,Double price,String color){

        this.pinpai=pinpai;
        this.price=price;
        this.color=color;
        System.out.println("带参数构造方法执行了....");
    }
    public void run(String driver,String chengke){

        System.out.println(driver+"开着"+getColor()+"的"+getPrice()+"万元的"+getPinpai()+"车载着"+chengke+"去兜风了");
    }
}
